﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ShevaEngine.Core.Foundation
{
    /// <summary>
    /// Vector 2 extensions.
    /// </summary>
    public static class Vector2Extensions
    {
        /// <summary>
        /// Cross method for Vector2.
        /// </summary>
        /// <param name="vector"></param>
        /// <param name="vertex1"></param>
        /// <param name="verte2"></param>
        public static float Cross(this Vector2 vector, Vector2 vertex)
        {
            return vector.X * vertex.Y - vector.Y * vertex.X;
        }
    }
}
